<template>
  <div>
  </div>
</template>
<script>
export default {
  components: {
  },
  data() {
    return {
    };
  },
  watch: {
    $route(to, form) {
    }
  },
  methods: {
  },
  activated() {
    let qIndex = this.$route.query.index || 1
    if (localStorage.getItem('fromLt')) {
      let formLt = localStorage.getItem('fromLt')
      if (formLt == qIndex) {
        window.location.href = window.location.host
      } else {
        window.location.href = `${this.$route.query.url}/#/?srcSys=kp&token=${localStorage.getItem('token')}`
        localStorage.setItem('fromLt', qIndex)
      }
    } else if (localStorage.getItem('token')) {
      window.location.href = `${this.$route.query.url}/#/?srcSys=kp&token=${localStorage.getItem('token')}`
      localStorage.setItem('fromLt', qIndex)
    }
  }
}
</script>
<style scoped>
</style>
